const { Schema, SchemaTypes, model } = require("mongoose")

const ArticleSchema = new Schema({
    title: { type: String },
    categories: [{ type: SchemaTypes.ObjectId, ref: 'Category' }],
    body: { type: String },
})

module.exports = model("Article", ArticleSchema)